//
//  MineEntryCell.swift
//  EasyDana
//
//  Created by mac on 2024/10/23.
//

import UIKit
import Kingfisher
class MineEntryCell: UITableViewCell {

    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var titleImageView: UIImageView!
    
    private var _model: MineViewController.MineDataModel.MineEntryModel?
    
    var model: MineViewController.MineDataModel.MineEntryModel? {
        get {
            return _model
        }
        set {
            _model = newValue
            self.nameLabel.text = newValue?.convoys
            self.titleImageView.kf.setImage(with: URL(string: newValue?.hastings ?? ""))
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
